class AtomsChain
  attr_accessor :atoms

  def initialize()
    @atoms = Array.new
  end
  
  def addAtom(atom)
    atoms.push(atom)
  end
  
  def getLastAtom()
    return atoms.last
  end
  
  def containsAtom(atom)
    return atoms.include?(atom)
  end  
  
  def copy()
    atomsChain = AtomsChain.new
    atomsChain.atoms = atoms.dup
    return atomsChain
  end

end